package com.xinqi.modules.databank.v2.convert;

import com.xinqi.common.base.dto.QuestionBaseDTO;
import com.xinqi.common.mapstruct.CommonConvertConfig;
import com.xinqi.modules.databank.dto.req.CourseResourceQuestionCreateDTO;
import com.xinqi.modules.databank.dto.rsp.question.QuestionAnalysisResultDTO;
import com.xinqi.modules.databank.v2.domain.CourseResourceQuestionEntity;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * 资料库提问表转换
 *
 * @author: system
 * @date: 2023/03/15
 */
@Mapper(config = CommonConvertConfig.class)
public abstract class CourseResourceQuestionConvert {

    public abstract CourseResourceQuestionEntity create(CourseResourceQuestionCreateDTO s);

    public abstract QuestionAnalysisResultDTO convertQuestion(QuestionBaseDTO s);

    public abstract List<QuestionAnalysisResultDTO> convertQuestionList(List<QuestionBaseDTO> list);

}
